package Mangos::DB::Mangos::GameobjectRespawn;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'gameobject_respawn',

    columns => 
    [
        guid        => { type => 'integer', not_null => 1 },
        respawntime => { type => 'bigint', default => '0', not_null => 1 },
        instance    => { type => 'integer', not_null => 1 },
    ],

    primary_key_columns => [ 'guid', 'instance' ],
);

1;

package Mangos::DB::Mangos::GameobjectRespawn::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GameobjectRespawn' }

__PACKAGE__->make_manager_methods('gameobject_respawn');

1;
